package cn.wit.test;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/*
 * 演示httpServletRequest请求
 */

public class DemoRequest extends HttpServlet{
	
	@Override
	protected void doGet(HttpServletRequest request, HttpServletResponse resp) throws ServletException, IOException {
		
		//获取请求参数得name属性
		String name = request.getParameter("name");
		
		System.out.println(name);
	}

}
